package com.zz.parkingsystem.mapper;

import com.zz.parkingsystem.dto.ParkDTO;
import com.zz.parkingsystem.entity.Parking;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
* @author zz
* @description 针对表【t_parking(泊位表)】的数据库操作Mapper
* @createDate 2022-08-29 19:55:06
* @Entity com.zz.parkingsystem.entity.Parking
*/
@Mapper
@Repository
public interface ParkingMapper {
    List<Parking> selectPark();
    Long getCount(ParkDTO parkDto);
    List<Parking> getAllParkExcel(ParkDTO parkDto);
    List<Parking> getAllPark(ParkDTO parkDto);

    int deleteByPrimaryKey(Long id);

    int insert(Parking record);

    int insertSelective(Parking record);

    Parking selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Parking record);

    int updateByPrimaryKey(Parking record);

    Parking selParkingByPkno(String pkno);

    Parking selByCarLicensePlate(Integer carLicensePlate);
}
